import axios from '@/libs/request'

// 插入
export const insert = (data) => {
  return axios.request({
    url: 'api/ac/cme2/projectProcessService/insert',
    data: data,
    type: 'post'
  })
}
// 更新
export const update = (data) => {
  return axios.request({
    url: 'api/as/cme2/projectprocess/update',
    data: data,
    type: 'post'
  })
}
// 删除
export const deleteRequest = (data) => {
  return axios.request({
    url: 'api/ac/cme2/projectProcessService/delete',
    data: data,
    type: 'post'
  })
}
// 分页查询
export const findPageList = ({ pageNo, pageSize }) => {
  return axios.request({
    url: 'api/as/cme2/projectprocess/findPageList',
    data: { pageNo, pageSize },
    type: 'get'
  })
}

// 所有
export const findList = (abc) => {
  return axios.request({
    url: 'api/as/cme2/projectprocess/findList',
    data: abc,
    type: 'post'
  })
}
// 提报
export const updateDeptCommitStatus = (data) => {
  return axios.request({
    url: 'api/ac/cme2/projectProcessService/updateDeptCommitStatus',
    data: data,
    type: 'post'
  })
}
// 驳回
export const updateDeptRejectStatus = (data) => {
  return axios.request({
    url: 'api/ac/cme2/projectProcessService/updateDeptRejectStatus',
    data: data,
    type: 'post'
  })
}
export const updateDeptAuditStatus = (data) => {
  return axios.request({
    url: 'api/ac/cme2/projectProcessService/updateDeptAuditStatus',
    data: data,
    type: 'post'
  })
}
export const updateLeaderAuditStatus = (data) => {
  return axios.request({
    url: 'api/ac/cme2/projectProcessService/updateLeaderAuditStatus',
    data: data,
    type: 'post'
  })
}
